// 统一请求路径前缀在libs/axios.js中修改
import { postRequest } from '@/libs/axios';

// 获取商品分类列表
export const getCategoryList = (params) => {
    return postRequest('/goodCategory/getGoodCategoryList', params)
}

// 编辑分类
export const editCategory = (params) => {
    return postRequest('/goodCategory/updateGoodCategory', params)
}

// 添加分类
export const addCategory = (params) => {
    return postRequest('/goodCategory/insertGoodCategory', params)
}

// 删除分类
export const removeCategory = (params) => {
    return postRequest('/goodCategory/deleteGoodCategory', params)
}

// 获取商品参数
export const getParamterList = (params) => {
    return postRequest('/goodParam/getGoodParam', params)
}

// 添加活修改商品参数
export const addParamter = (params) => {
    return postRequest('/goodParam/insertOrUpdateGoodParam', params)
}

// 获取商品列表
export const getCommodityList = (params) => {
    return postRequest('/good/PCgoodsList', params)
}

// 修改商品
export const editCommodity = (params) => {
    return postRequest('/good/insertOrderUpdateGood', params)
}

// 删除商品
export const removeCommodity = (params) => {
    return postRequest('/good/removeGood', params)
}

// 添加商品
export const addCommodity = (params) => {
    return postRequest('/good/insertOrderUpdateGood', params)
}

// 获取商品颜色列表
export const getColorList = (params) => {
    return postRequest('/color/getColorList', params)
}
// 添加商品颜色
export const addColor = (params) => {
    return postRequest('/color/insertColor', params)
}
// 删除商品颜色
export const removeColor = (params) => {
    return postRequest('/color/deleteColor', params)
}
// 编辑商品颜色
export const editColor = (params) => {
    return postRequest('/color/updateColor', params)
}

// 获取商品尺寸列表
export const getSizeList = (params) => {
    return postRequest('/size/getSizeList', params)
}

// 删除商品尺寸
export const removeSize = (params) => {
    return postRequest('/size/removeSize', params)
}

// 添加商品尺寸
export const addSize = (params) => {
    return postRequest('/size/insertSize', params)
}

// 获取预约列表
export const getYuYueList = (params) => {
    return postRequest('/bookingOrder/BackBookingOrderList', params)
}

// 添加预约
export const addYuYue = (params) => {
    return postRequest('/bookingOrder/insertOrderUpdatebookingOrder', params)
}

// 删除预约
export const removeYuYue = (params) => {
    return postRequest('/bookingOrder/removebookingOrder', params)
}

// 获取套餐列表
export const getPCCommodityList = (params) => {
    return postRequest('/good/PCgoodsPackageList', params)
}

// 添加套餐
export const addCombo = (params) => {
    return postRequest('/good/insertOrderUpdateGood', params)
}

// 修改套餐
export const editCombo = (params) => {
    return postRequest('/good/insertOrderUpdateGood', params)
}